Skip to content

Install drive apps from the plugin catalog, with versioned updates - #1689

Closed
michielbdejong wants to merge 2 commits into
feat/plugin-debugfrom
claude/catalog-app-install
Closed

michielbdejong wants to merge 2 commits into
feat/plugin-debugfrom
claude/catalog-app-install

Conversation

@michielbdejong

Copy link
Copy Markdown
Contributor

For ontola/atomic-plugins#94. Lets users find, install and update iframe drive apps from the Integrations page, instead of test helpers injecting app source.

lib, catalog-app.ts:

  • Parses a catalog entry's new app-module (the URL of the built ES module for exactly version) and app-module-integrity (SRI sha384).
  • Fetches the module and refuses it unless its bytes match.
  • Then createApp creates the app, ontology, row class, table, entry point and identity, and records where it came from (app-catalog-id, app-version, app-module, app-module-integrity).
  • updateCatalogApp replaces only the entry point's source through updateApp, so rows, schema, identity and rights survive.
  • catalogAppState offers install, update or nothing. It never offers a downgrade.

data-browser:

  • The catalog parser keeps app entries.
  • The Integrations page gets a "Drive apps" section with Install / Open / "Installed X" / "Update to Y", behind the same enabled, experimental and API-plugin switches as the rest of the page.
  • The new strings are added to the locale catalogs.

Tests:

  • lib catalog-app.test.ts (7), plugin-app.test.ts, data-browser pluginCatalog.test.tsx (8) and data-browser tsc pass.
  • The atomic-plugins Pets e2e (discover → install → connect → import → reopen → update) passes against this branch.

🤖 Generated with Claude Code

Michiel de Jong and others added 2 commits September 24, 2026 10:57
A catalog.json entry can now name an installable drive app: `app-module`
(the built ES module for exactly `version`), `app-module-integrity` (its
SRI hash) and optionally `app-row-name`/`app-row-name-plural`. This is
distinct from `pluginUrl`, which is a source link.

- @tomic/lib `catalog-app.ts`: parse an entry, fetch its module and refuse
  it unless its bytes match the pinned integrity, then `createApp` (app,
  ontology, row class, table, entry point, identity) and record where it
  came from (`app-catalog-id`, `app-version`, `app-module`,
  `app-module-integrity`, drive-local terms). `updateCatalogApp` replaces
  only the entry point's source via `updateApp`, so rows, schema, identity
  and rights survive. `catalogAppState` offers install / update / nothing,
  never a downgrade.
- data-browser: the catalog parser keeps app entries (module resolved
  against the catalog URL); the Integrations page gets a "Drive apps"
  section with Install / Open / "Installed <version>" / "Update to
  <version>", gated like the rest of the page (enabled, experimental,
  API plugins). Install hands the app key to the node as the New menu does.

For ontola/atomic-plugins#94.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Without these entries the new Integrations section renders its headings,
copy and labels empty.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
michielbdejong pushed a commit that referenced this pull request Sep 24, 2026
…talog app install)

Integration branch for ontola/atomic-plugins' .atomic-server-ref while both
PRs await review. Not for merging.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
joepio added a commit that referenced this pull request Sep 24, 2026
Combines #1549, #1654, #1682, #1684, #1689, #1690, #1691, #1692, #1693, #1694, #1695, #1696, #1697 and #1698, with the conflict resolutions and e2e fixes described in #1699. Tested green on Mancave in run 4576 at 25b124a.

joepio commented Sep 24, 2026

Copy link
Copy Markdown
Member

Landed on develop in c589fc6 via the combined batch #1699, which was tested green on Mancave at this PR's head. Closing, since the squash merge does not mark it merged.


Generated by Claude Code

@joepio joepio closed this Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants